package com.nlx.notes.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author nlx
 * @since 2024-12-15
 */
@Getter
@Setter
public class Transactions implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 流水id
     */
    private String flowId;


    /**
     * 关联的账户ID
     */
    private Long accountId;

    /**
     * 交易类别ID
     */
    private Long  categoryId;

    private Long secondCategoryId;

    /**
     * 账本id
     */
    private Long bookId;

    /**
     * 交易金额
     */
    private int amount;

    /**
     * 交易类型（收入 / 支出）
     */
    private String transactionType;

    /**
     * 交易日期
     */
    private String transactionDate;

    /**
     * 交易时间
     */
    private String transactionTime;

    private LocalDateTime flowTime;

    /**
     * 用户id
     */
    private Long userId;


    /**
     * 备注
     */
    private String description;

    /**
     * 记录创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    private LocalDateTime updatedAt;

    private Integer delFlag;
}
